package yao.xerophyte.java.map;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class HashMapTest {
    public static void main(String[] args) {
        Map<String, Integer> testMap = new HashMap<>();
        testMap.put("123123", 123);
        testMap.put("123123", 345);
        System.out.println(testMap.get("123123"));
        Set<Map.Entry<String, Integer>> entries = testMap.entrySet();
        entries.forEach(entry ->{
            System.out.println(entry);
        });
    }
}
